package com.xlf.service.base.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xlf.common.core.pojo.vo.UserVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author xlf 2734029211@qq.com
 * @Date 2023/11/16 15:30
 * @Description: TODO
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class JudgeVO implements Serializable {


    private Long id;

    /**
     * 题目id
     */
    private Long pid;

    /**
     * 题目编码
     */
    private String pCode;

    /**
     * 提交用户
     */
    private UserVO userVO;

    /**
     * 提交的用户id
     */
    private Long userId;

    /**
     * 提交的时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date submitTime;

    /**
     * 结果码具体参考文档
     */
    private Integer status;

    /**
     * 运行时间(ms)
     */
    private Integer time;

    /**
     * 运行内存（kb）
     */
    private Integer memory;

    /**
     * IO判题则不为空
     */
    private Integer score;

    /**
     * 代码是否可分享
     */
    private Integer share;

    /**
     * 代码长度
     */
    private Integer length;

    /**
     * 代码语言
     */
    private String language;

}
